﻿@{
    ViewBag.Title = "TaskMessageInbox";
    string url = Server.UrlEncode("~/Task?nolayout=true");


}

<iframe id="iframe1" width="100%" height="500px" style="border: solid 1px gray;" 
        src='@Common.TaskMessageInboxPrefixUrl&redirectPage=@url'></iframe>

@section scripts
{
<script>
    $(function () {
        var lastHeight1 = 0, curHeight1 = 0, $frame1 = $('#iframe1');
        setInterval(function () {
            curHeight1 = $frame1.contents().find('body').height() + 20;
            if (curHeight1 != lastHeight1) {
                $frame1.css('height', (lastHeight1 = curHeight1) + 'px');
            }
        }, 500);
    });
</script>
}